package com.woniuxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper  extends BaseMapper<Role> {
    //连表查询，通过用户id查询所有角色信息
    List<Role> findsRoleById(int uid);
    //通过角色，查权限
    Role findPermsById(int id);
}
